//package com.feinno.urcs.group.pd.util;
//
//import com.feinno.urcs.group.pd.entity.GroupFileArgs;
//import org.slf4j.Logger;
//import org.slf4j.LoggerFactory;
//
//import java.io.OutputStream;
//
///**
// * Created by wuhao on 5/12/15.
// */
//public class PdGroupFileHelper {
//    public static void send(GroupFileArgs gfa){
//        final Logger LOGGER = LoggerFactory.getLogger(PdGroupMessageHelper.class);
//        //获取文件输出流
//        OutputStream ops = null;
//        //ops = NCFP.get(gfa.getFileId());
//
////        // 构建PageUAC
////        final RcsFileTransferUAC uac = new RcsFileTransferUAC(getMsgTechEnum(), sipRequest, fileAttr, toUri, connector);
////        final Future<Integer> future = uac.begin();
////        future.addListener(new FutureListener<Integer>() {
////            @Override
////            public void run(Result<Integer> result) {
////                try {
////                    if (!success(result.getValue())) {
////                        uac.end();
////                        return;
////                    }
////
////                    // 发送消息内容
////                    final Future<Integer> sendFuture = uac.send(fileStorage);
////                    sendFuture.addListener(new FutureListener<Integer>() {
////                        @Override
////                        public void run(Result<Integer> result) {
////                            int status = result.getValue();
////                            if (success(status)) {
////                                messageStorage.sendSuccess(msg);
////                                fileStorage.delete(fileId);
////                            } else {
////                                LOGGER.error("send offline file failed: {}", status);
////                            }
////                            uac.end();
////                        }
////                    });
////                } catch (Exception e) {
////                    LOGGER.error("", e);
////                }
////            }
////        });
//        //
//    }
//}
